package com.logistics.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.logistics.Pickup;
import com.logistics.PickupQueryParam;
import com.logistics.dao.PickupDao;

import cn.easybuild.core.dao.AppBaseDao;
import cn.easybuild.core.service.StringPojoAppBaseServiceImpl;

@Service
public class PickupServiceImpl extends StringPojoAppBaseServiceImpl<Pickup> implements PickupService {

	@Override
	public List<Pickup> query(PickupQueryParam param) {
		return dao.query(param);
	}

	@Override
	protected AppBaseDao<Pickup, String> getDao() {
		return dao;
	}
	
	private PickupDao dao;

	@Autowired
	public void setDao(PickupDao dao) {
		this.dao = dao;
	}

	@Override
	public List<Pickup> needRemind() {
		return dao.needRemind();
	}

	@Override
	public void updatePrintStatus(List<Pickup> pickups) {
		dao.updatePrintStatus(pickups);
	}

	@Override
	public void updatePickupStatus(String id) {
		dao.updatePickupStatus(id);
	}

	@Override
	public List<Pickup> needPrint() {
		return dao.needPrint();
	}

}
